package com.bona.core.filter;

import com.alibaba.dubbo.rpc.Filter;
import com.alibaba.dubbo.rpc.Invocation;
import com.alibaba.dubbo.rpc.Invoker;
import com.alibaba.dubbo.rpc.Result;
import com.alibaba.dubbo.rpc.RpcException;

public class DubboAuthorityFilter implements Filter {

//	private static Logger logger = LoggerFactory.getLogger(DubboAuthorityFilter.class);
	
	@Override
	public Result invoke(Invoker<?> invoker, Invocation invocation) throws RpcException {
//		Object[] args = RpcContext.getContext().getArguments();
//		if (args != null) {
//			for (Object arg: args)
//			logger.info("进入dubbo拦截器["+arg+"]");
//		}
		return invoker.invoke(invocation);
	}

}
